package com.xiyan.base.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author: ruiyanglee
 * @date: 2020-09-08 13:54
 * @description: 状态码描述
 */
@ApiModel(value = "状态码说明", description = "")
public class ResultCode {

    // 请求成功
    @ApiModelProperty(value = "请求成功")
    public static final Integer SUCCESS_CODE = 2000;

    // 请求失败
    @ApiModelProperty(value = "请求失败")
    public static final Integer ERROR_CODE = 2001;

    // 用户名错误
    @ApiModelProperty(value = "用户名错误")
    public static final Integer USER_NAME_NOT_EXIST_CODE = 2003;

    // 密码错误
    @ApiModelProperty(value = "密码错误")
    public static final Integer USER_PASSWD_ERROR_CODE = 2004;

    // 参数错误
    @ApiModelProperty(value = "参数错误")
    public static final Integer PARAMS_ERROR_CODE = 2005;

}
